    <div class="mainCon">
        <div class="breadCurmbs"><a href="#">编辑</a></div>
      <div class="box" id="edit" >
      <font color="red"><?php if(isset($error)) {echo $error;} ?></font>
          <form action="<?php echo site_url('admin/cloth/baby_type_edit');?>/<?php if(!empty($one['id'])) echo $one['id'];?>" method="post"  enctype="multipart/form-data" >
             <table cellpadding="0" cellspacing="0" border="0" class="table-3">
                 <tr>
                     <td class="num1">子分类名称：</td>
                     <td class="num2">
                         <input type="text" placeholder="请输入名称" name="name" value="<?php echo $one['name'];?>"/>
                         <span class="help-inline"><?php echo form_error('name'); ?></span>
                     </td>
                 </tr>
                 <tr>
                     <td class="num1">宝贝分类：</td>
                     <?php $cloth_type = $this->common->get_list(array('sign'=>'cloth_class'));?>
                     <td class="num2">
                         <select name="cloth_class_id">
                             <?php if(!empty($cloth_type)){foreach($cloth_type as $ck => $cv){?>
                                 <option value="<?php echo $cv['id'];?>" <?php if($one['cloth_class_id'] == $cv['id']) echo "selected='selected'";?>><?php echo $cv['name'];?></option>
                             <?php }}?>
                         </select>
                         <span class="help-inline"><?php echo form_error('name'); ?></span>
                     </td>
                 </tr>
                <tr>
                    <td class="num1"></td>
                    <td class="num2">
                    <input type="submit" href="<?php echo site_url('admin/cloth/baby_type_edit');?>/<?php if(!empty($one['id'])) echo $one['id'];?>" class="btn btn-danger" value="修改"/>
                    </td>
                </tr>
            </table>
            </form>
        </div>
    </div>
</div>